package com.accp.hotevent.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {

    private Integer id;

    private String email;

    @JsonIgnore
    private String password;

    private String nickname;

    private String base64Data;

    @JsonProperty("isAdmin")
    private boolean isAdmin;

    @JsonProperty("isBanned")
    private boolean isBanned;
}
